//
//  UIAlertViewCustom.h
//  警告框
//
//  Created by mac on 16/5/9.
//  Copyright © 2016年 天津提嗯科技有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, UIAlertViewCustomState) {
    UIAlertViewCustomStateOK = 0,
    UIAlertViewCustomStateCancel,
};

typedef void(^MYActionArgument)(id);

@interface AlertBackgroundWindow : UIWindow

@end

@interface UIAlertViewCustom : UIView

@property ( nonatomic)  BOOL disabled;
@property (weak, nonatomic) UIButton *closeButton;
@property (nonatomic) BOOL isShowCloseButton;
- (void)show;
- (void)dismiss;
- (instancetype)initWithTitle:(NSString *)title
                      message:(NSString *)message;

- (instancetype)initWithTitle:(NSString *)title contentView:(UIView *)contentView;

- (void)addButtonWithTitle:(NSString *)title
                     state:(UIAlertViewCustomState)state
                    action:(MYAction)action;

@end
